gtk-demo: Only show non-symbolic icons in toolpalette
authorMatthias Clasen <mclasen@redhat.com>
Mon, 30 Jun 2014 17:28:46 +0000 (13:28 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 30 Jun 2014 17:28:46 +0000 (13:28 -0400)
Otherwise, we get every icon twice. To switch between symbolic
and non-symbolic icons, this css fragment comes in handy:
* { -gtk-icon-style: symbolic; }

demos/gtk-demo/toolpalette.c

index 1f5bf9b59ce1a05a0963d9a394ebce90021360f7..f8d95732a7bf3c661e83e17c65d91db77d65fd82 100644 (file)
@@ -668,7 +668,10 @@ load_icon_items (GtkToolPalette *palette)
           GtkToolItem *item;
           gchar *id = ll->data;
 
-          if (g_strcmp0 (id, "emblem-desktop") == 0)
+          if (g_str_equal (id, "emblem-desktop"))
+            continue;
+
+          if (g_str_has_suffix (id, "-symbolic"))
             continue;
 
           g_message ("Got id '%s'", id);